package day06;

/**
 * Created by Shinelon on 2016/9/19.
 */
public class ClassAndObject {

    /**
     * class:类
     * new  对象；
     *
     * 继承，
     */
    public static void main(String[] args) {
        Cat cat =new Cat();
        cat.catchmouse();
        cat.sleep();
        cat.chi();
        Dog dog = new Dog();
        dog.setName("xkkk");
        dog.setColor("蓝");
        dog.setGender("女");
        dog.setType("土狗");
        Object object = new Object();
        System.out.println(dog);
        dog.fei();
        dog.breathe();
        dog.chi();
        dog.sleep();
    }
}
